<script type="text/javascript">
    var shareData = {
        title: '伊一、天悦等你看直播送大礼！',
        desc: '乐钻已到账，伊一天悦在乐可旅行等你来看直播哦~',
        imgUrl: '<%=browserURL%>/images/share.jpg',
        link: '<%=browserURL%>/index',
        success: function(res) {
            // 领取10乐钻
            if (isAvailable2) {
                joinActive(userData, '2', function(data) {
                    checkActive(userData, '2', function(data) {
                        isAvailable2 = data.result.available;
                    }, function(data) {});
                    $('.box-grey').show();
                    $('.pop-4').show();
                }, function(data) {
                    alert('领取失败，请刷新重试！');
                });
            }
        }
    };

    var wxConfig = {
        appId: '<%=wxConfig.appId%>',
        timestamp: '<%=wxConfig.timestamp%>',
        nonceStr: '<%=wxConfig.nonceStr%>',
        signature: '<%=wxConfig.signature%>'
    }
</script>
